local skel = fk.CreateSkill {
  name = "emo__lvxing",
  tags = {Skill.Compulsory},
}

Fk:loadTranslationTable{
  ["emo__lvxing"] = "旅行",
  [":emo__lvxing"] = "锁定技，每轮结束时，若X小于5，你摸X张牌，若X等于5，你恢复所有“换装”标记（X为当前游戏轮数）。",

  ["$emo__lvxing1"] = "回忆也是拥有力量的。",
  ["$emo__lvxing2"] = "你喜欢旅行吗？我常常能在旅行中找到设计的新灵感。",
}

skel:addEffect(fk.RoundEnd, {
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(skel.name) and (player.room:getBanner("RoundCount") or 6) <= 5
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    local x = room:getBanner("RoundCount")
    if x < 5 then
      player:drawCards(x, skel.name)
    else
      if player:hasSkill("emo__huanzhuang", true) then
        room:setPlayerMark(player, "@[:]emo__huanzhuang", {"HZqingxin","HZtianmei","HZdianya","HZshuaiqi","HZxinggan"})
      end
    end
  end,
})

return skel
